import  STATUS_CODES  from '../../http';

 export default  function (res, code = 200, data = '', headers = {}) {
    res.writeHead(code, headers);
    res.end(data || STATUS_CODES[code]);
}
